<admintpl file="header" />
<style>
a{cursor: pointer;}
.fl{float:left;}
.cbtsn{width:90px; height:30px; line-height:30px; display:inline-block; background:#ff8540; color:#fff;text-align:center;}
</style>
<body class="J_scroll_fixed">
<div class="wrap J_check_wrap">


    <form action="{:U('Hotcity/hot_edit')}" method="post" class="form-horizontal js-ajax-forms" enctype="multipart/form-data" id="form" style="margin-top: 100px">
        <input type="hidden" name="id" id="id" value="{$id}">
        <div>
            热门城市名称：
             <input type="text" style="width: 500px" id="name" name="name" value="{$data.name}">
        </div>
        <div class="" style="margin-left: 650px;margin-top: -35px">
            <button class="btn btn-primary" type="button" onclick="sav()">确认修改</button>
        </div>
    </form>
</div>
</body>
</html>
<script type="text/javascript" src="__PUBLIC__/js/layer/layer.js"></script>
<script>
    function sav(){
        var name=$("#name").val();
        if(name==""){
//            alert(' 来访目的不能为空');
            layer.open({
                content: '--热门城市名称不能为空--',
                btn: '确定'
            });
            return false;
        }
        $("#form").submit();
    }
</script>